﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSW.Framework.Common.Binding;

namespace CSW.Security.UI.DevEx.Search
{
    internal class Security_AppFunction_Search : Search<Security_AppFunction>
    {
        public Security_AppFunction_Search()
        {
        }

        public Security_AppFunction_Search(Security_AppFunction item)
            : base(item)
        {
        }

        public int AppFunctionID
        {
            get { return m_BusinessObject.AppFunctionID; }
        }

        public string Description
        {
            get { return m_BusinessObject.Description; }
        }

        public static IQueryable<Security_AppFunction_Search> GetAll()
        {
            return from s in SecurityTest.DataContextInstance.Security_AppFunction
                   orderby s.AppFunctionID
                   select new Security_AppFunction_Search(s);
        }
    }
}
